SET.FETCH_GOTO Function
Syntax
Record_Number as N = Fetch_Goto(N record_number)
Arguments
- record_number
The number of the record to retrieve.
Description
Goto a specific record number in the table, returns positive if record found, else negitive record number.
Discussion
The .FETCH_GOTO() method retrieves a specific Record_Number in the set. It returns a positive number if the record was found; otherwise, it returns an error.
Example
The following example fetches the first record of the set and displays the description field from the primary table.
dim ptr as P ptr = set.open("invoice") ? ptr.fetch_goto(2) ->2.000000 ? ptr.fetch_goto(2000) -> ERROR: record number is past end of table
See Also